import Index from "./components/Index";
import About from "./components/About";
import {
  BrowserRouter as Router,
  Route,
  Link
} from 'react-router-dom';

const Basic = ()=>(
    <Router>
        <div>
            <ul>
                <li><Link to="/">Home</Link></li>
                <li><Link to="/about">About</Link></li>
            </ul>
            <Route exact  path="/" component={Index}/>
            <Route path="/about" component={About}/>
        </div>
    </Router>
)

ReactDOM.render(<Basic/>,document.getElementById("content"));